package models

import (
	"github.com/jinzhu/gorm"
	"time"
)

type User struct {
	// `表增加id,created_at,updated_at,deleted_at四个字段` 当有数据操作时，会自动更新对应的时间
	gorm.Model
	UserName   string `gorm:"NOT NULL;UNIQUE"`
	UserPwd    string `gorm:"type:varchar(255)"`
	Email      string `gorm:"type:varchar(64)"`
	Phone      string `gorm:"type:varchar(128)"`
	Status     int    `gorm:"size:2"`
	LastActive time.Time
}
